import groovy.lang.GroovyShell;
import org.junit.Test;

public class GroovyTest2 {
    @Test
    public void a() {
        GroovyShell shell = new GroovyShell();
        Object evaluate = shell.evaluate("3>2.1");
        System.out.println(evaluate.toString());
        //运行完，记得将内部的缓存清理
        shell.getClassLoader().clearCache();
    }
}
